﻿using OF.Component.Enum;
using OF.Component.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace OF.Component.DTO
{
    [Serializable]
    [DataContract]
    public class NetworkOrderDto: NetworkOrderInfo
    {
        /// <summary>
        /// 省名
        /// </summary>
        [DataMember]
        public string ProvinceName
        {
            get; set;
        }

        /// <summary>
        /// 城市名
        /// </summary>
        [DataMember]
        public string CityName
        {
            get; set;
        }

        /// <summary>
        /// 分类名
        /// </summary>
        [DataMember]
        public string BizTypeName
        {
            get; set;
        }

        /// <summary>
        /// 省ID
        /// </summary>
        [DataMember]
        public int ProvinceId
        {
            get; set;
        }

        /// <summary>
        /// 主类ID
        /// </summary>
        [DataMember]
        public int MasterBizTypeId
        {
            get; set;
        }
        /// <summary>
        /// 订单状态
        /// </summary>
        [DataMember]
        public string OrderStatusName
        {
            get
            {
                return Utility.EnumHelper.GetEnumDesc(typeof(OrderStateEnum), OrderState);
            }
        }

        /// <summary>
        /// 支付状态
        /// </summary>
        [DataMember]
        public string PayStatusName
        {
            get
            {
                return Utility.EnumHelper.GetEnumDesc(typeof(PayStateEnum), PayState);
            }
        }

     
    }
}
